/**
 * Created by fanweihua on 2016/11/18.
 */
'use strict';

import React from 'react';
import ReactDOM from 'react-dom';
import {browserHistory, Router, hashHistory} from 'react-router';
import Routers from './config/router';

// Redux
import {createStore} from 'redux';
import {Provider} from 'react-redux';
import reduxApp from './redux/reducers';

let store = createStore(reduxApp);


ReactDOM.render(
    <Provider store={store}>
        <Router history={hashHistory} routes={Routers}/>
    </Provider>, document.getElementById('app'));